// 从vm映射属性，并通过new Function动态解析表达式：VueExpression
export const mappingValue = (vm, VueExpression) => {
  const propList = [];
  const valueList = []
  for (let key in vm) {
    propList.push(key);
    valueList.push(vm[key])
  }
  const result = new Function(...propList, 'return ' + VueExpression)(...valueList);
  console.log(result,'result')
  return result;
}
